from urllib import request

header = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36'}

url = 'https://piaofang.maoyan.com/dashboard-ajax?orderType=0&uuid=17ffdb04e29c8-08af8d8b10b8fc-e323069-144000-17ffdb04e29c8&timeStamp=1649231830789&User-Agent=TW96aWxsYS81LjAgKFdpbmRvd3MgTlQgMTAuMDsgV2luNjQ7IHg2NCkgQXBwbGVXZWJLaXQvNTM3LjM2IChLSFRNTCwgbGlrZSBHZWNrbykgQ2hyb21lLzczLjAuMzY4My4xMDMgU2FmYXJpLzUzNy4zNg%3D%3D&index=139&channelId=40009&sVersion=2&signKey=c831eddc458fea6d197db0d8ecdc32be'
re = request.Request(url, headers=header)
resp = request.urlopen(re)
print(resp.read().decode('utf-8'))  # 解码
